How to compile Flutter Engine

after clone code using deopt-tools.

cd src

generating compile config with gn

The Flutter Engine is consist of mutiple archetecture.

With ./flutter/tools/gn, compile configs for specific platform will generate under the src/out.

Host:

./flutter/tools/gn --no-lto --runtime-mode debug

Android:

./flutter/tools/gn --android --runtime-mode debug

./flutter/tools/gn --android --unoptimized --runtime-mode=debug --android-cpu=arm64

iOS:

# for simulator
./flutter/tools/gn --ios --unoptimized --ios-cpu=arm64 --simulator --runtime-mode=debug

# for device
./flutter/tools/gn --ios --unoptimized --ios-cpu=arm64 --runtime-mode=debug

本文作者:Maeiee

本文链接:How to compile Flutter Engine

版权声明:如无特别声明,本文即为原创文章,版权归 Maeiee 所有,未经允许不得转载!


喜欢我文章的朋友请随缘打赏,鼓励我创作更多更好的作品!